import request from '@/api/request'

//查询商品列表
function findOrdersByPage(start,limit,data) {
  return request({
    url: `/lejuAdmin/order/findOrdersByPage/${start}/${limit}`,
    method:"POST",
    data
  })
}

//查看订单明细
function orderDetail(id,data) {
  return request({
    url: `/lejuAdmin/order/orderDetail/${id}`,
    data
  })
}

//确认发货
function sendDone(data) {
  return request({
    url: `/lejuAdmin/order/sendDone`,
    method:"POST",
    data
  })
}

//关闭订单
function finishOrder(id,data) {
  return request({
    url: `/lejuAdmin/order/finishOrder/${id}`,
    method:"POST",
    data
  })
}

export {
  findOrdersByPage,orderDetail,sendDone,finishOrder
}